/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.site.user.pojo;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author zhanjun
 */
@Entity
@Table(name = "tb_dictionary")
@NamedQueries({
    @NamedQuery(name = "TbDictionary.findAll", query = "SELECT t FROM TbDictionary t"),
    @NamedQuery(name = "TbDictionary.findByIdDictionary", query = "SELECT t FROM TbDictionary t WHERE t.idDictionary = :idDictionary"),
    @NamedQuery(name = "TbDictionary.findBySystemKey", query = "SELECT t FROM TbDictionary t WHERE t.systemKey = :systemKey"),
    @NamedQuery(name = "TbDictionary.findBySystemName", query = "SELECT t FROM TbDictionary t WHERE t.systemName = :systemName"),
    @NamedQuery(name = "TbDictionary.findByTbaleKey", query = "SELECT t FROM TbDictionary t WHERE t.tbaleKey = :tbaleKey"),
    @NamedQuery(name = "TbDictionary.findByTableName", query = "SELECT t FROM TbDictionary t WHERE t.tableName = :tableName"),
    @NamedQuery(name = "TbDictionary.findByFieldKey", query = "SELECT t FROM TbDictionary t WHERE t.fieldKey = :fieldKey"),
    @NamedQuery(name = "TbDictionary.findByFieldName", query = "SELECT t FROM TbDictionary t WHERE t.fieldName = :fieldName"),
    @NamedQuery(name = "TbDictionary.findByKeyValue", query = "SELECT t FROM TbDictionary t WHERE t.keyValue = :keyValue"),
    @NamedQuery(name = "TbDictionary.findByKeyName", query = "SELECT t FROM TbDictionary t WHERE t.keyName = :keyName"),
    @NamedQuery(name = "TbDictionary.findByParentId", query = "SELECT t FROM TbDictionary t WHERE t.parentId = :parentId"),
    @NamedQuery(name = "TbDictionary.findByHaveLink", query = "SELECT t FROM TbDictionary t WHERE t.haveLink = :haveLink")})
public class TbDictionary implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "ID_DICTIONARY")
    private String idDictionary;
    @Column(name = "SYSTEM_KEY")
    private String systemKey;
    @Column(name = "SYSTEM_NAME")
    private String systemName;
    @Column(name = "TBALE_KEY")
    private String tbaleKey;
    @Column(name = "TABLE_NAME")
    private String tableName;
    @Column(name = "FIELD_KEY")
    private String fieldKey;
    @Column(name = "FIELD_NAME")
    private String fieldName;
    @Column(name = "KEY_VALUE")
    private String keyValue;
    @Column(name = "KEY_NAME")
    private String keyName;
    @Column(name = "PARENT_ID")
    private String parentId;
    @Column(name = "HAVE_LINK")
    private String haveLink;

    public TbDictionary() {
    }

    public TbDictionary(String idDictionary) {
        this.idDictionary = idDictionary;
    }

    public String getIdDictionary() {
        return idDictionary;
    }

    public void setIdDictionary(String idDictionary) {
        this.idDictionary = idDictionary;
    }

    public String getSystemKey() {
        return systemKey;
    }

    public void setSystemKey(String systemKey) {
        this.systemKey = systemKey;
    }

    public String getSystemName() {
        return systemName;
    }

    public void setSystemName(String systemName) {
        this.systemName = systemName;
    }

    public String getTbaleKey() {
        return tbaleKey;
    }

    public void setTbaleKey(String tbaleKey) {
        this.tbaleKey = tbaleKey;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getFieldKey() {
        return fieldKey;
    }

    public void setFieldKey(String fieldKey) {
        this.fieldKey = fieldKey;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getKeyValue() {
        return keyValue;
    }

    public void setKeyValue(String keyValue) {
        this.keyValue = keyValue;
    }

    public String getKeyName() {
        return keyName;
    }

    public void setKeyName(String keyName) {
        this.keyName = keyName;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getHaveLink() {
        return haveLink;
    }

    public void setHaveLink(String haveLink) {
        this.haveLink = haveLink;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idDictionary != null ? idDictionary.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TbDictionary)) {
            return false;
        }
        TbDictionary other = (TbDictionary) object;
        if ((this.idDictionary == null && other.idDictionary != null) || (this.idDictionary != null && !this.idDictionary.equals(other.idDictionary))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.site.user.pojo.TbDictionary[idDictionary=" + idDictionary + "]";
    }

}
